I am trying to determine what the front of a string is and depending on what
that substring is declare certan values.
I am using the following code:
#if (substr(MyStr,1,1)="0")
#declare TL = -0.6;
#declare TR = -0.4;
#end;
Povray gives me an error on the #if line of:
numeric expression expected but substr found instead.
Is there anyway to get an #if statement to examine a substr for a value? If
not how do you get around this?
Post a reply to this message
|